package com.itboye.eweilisten.util.sputil;

import com.itboye.eweilisten.model.GoodsDetailBean;

import java.text.DecimalFormat;

/**
 * Created by itboye on 2017/3/22.
 * 价格统一转换
 */

public class DoublePrice {
    public static String  getPrice(GoodsDetailBean bean,int position){
        DecimalFormat df   = new DecimalFormat("######0.00");
        double price=Double.parseDouble(bean.getSku_list().get(position).getPrice());
        String pri=df.format(price/100);
        return pri;
    }
}
